<html>
  <head>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

    <script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>

      <title>阡陌S官网</title>
      <link id="ppt" rel="stylesheet" type="text/css" href="/static/css/s.css">
    <script>

        var sUserAgent = navigator.userAgent.toLowerCase();
        var bIsIpad = sUserAgent.match(/ipad/i) == "ipad";
        var bIsIphoneOs = sUserAgent.match(/iphone os/i) == "iphone os";
        var bIsMidp = sUserAgent.match(/midp/i) == "midp";
        var bIsUc7 = sUserAgent.match(/rv:1.2.3.4/i) == "rv:1.2.3.4";
        var bIsUc = sUserAgent.match(/ucweb/i) == "ucweb";
        var bIsAndroid = sUserAgent.match(/android/i) == "android";
        var bIsCE = sUserAgent.match(/windows ce/i) == "windows ce";
        var bIsWM = sUserAgent.match(/windows mobile/i) == "windows mobile";
        if (!(bIsIpad || bIsIphoneOs || bIsMidp || bIsUc7 || bIsUc || bIsAndroid || bIsCE || bIsWM) ){


                a=document.getElementById("ppt");
                a.href="/static/css/d.css";


        }else{

                a=document.getElementById("ppt");
                a.href="/static/css/s.css";

        }


browserRedirect();//调用判断当前访问页面是手机端还是移动端


    </script>
 <style type="text/css">

    </style>


  </head>


  <body class="ta">

    <p>
        <h1 class="tp">登录</h1>
    </p>

     <form action="http://www.qianmos.top/mm" method="post">
        <label class="ba" for="us">
        <input id="us" type="text" class="ma" name="u" placeholder="账号/手机号">
        </label>

        <label  class="pp" for="pass">
        <input id="pass" class="pa"name="p" type="password" placeholder="密码">
        </label>



    <button onclick="ht()" type="button" class="go" id="foo">
        <img src="http://qianmos.top:9999/image/333.png" width="600px" >

    </button>
   </form>

    <a href="http://www.qianmos.top/tap" class="mab">忘记密码</a>
    <a href="http://www.qianmos.top/aaa" id="maf">用户注册</a>

    <script src="http://qianmos.top:81/jquery-3.4.1.min.js">

         </script>
     <script>

             $("#foo").click(function()
    {
        var word = $("#us").val(); //获取文本框的输入
        var pas = $("#pass").val(); //获取文本框的输入
         var pp={'name':word,'pas':pas,};
         var js = JSON.stringify(pp);


        //把word发给后台php程序
        //返回的数据放在data中，返回状态放在status
        $.post("/mm",{u:js}, function(data,status){

            const mm=data;

           const ob = JSON.stringify(mm);

           const a = JSON.parse(ob);
            alert(a['name']);


            if(a['pms']=='tur')
            {location.href = "http://qianmos.top/qqs";}
            else {}
        });
    });

          </script>
  </body>
</html>